<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <script src="../js/jquery/jquery-1.11.2.min.js"></script>
  <script>
    $(function() {
      $("#hello").click(function () {
        onclick();
      });
    });
    function onclick() {
      parent.window.location.href = "error.html";
    }
  </script>
</head>
<body>
    <button id="hello" name="click"></button>
</body>
</html>